package cn.iocoder.yudao.module.stock.api.stock.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "RPC 服务 - 库存 Response DTO")
@Data
public class StockRespDTO {

    @Schema(description = "库存编号", example = "1024")
    private Long id;

    @Schema(description = "商品id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long productId;

    @Schema(description = "可用数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "11")
    private Integer availableQuantity;

    @Schema(description = "锁定数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "11")
    private Integer lockedQuantity;
}
